home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 February / EnigmA AMIGA RUN 34 (1999)(G.R. Edizioni)(IT)[!][issue 1999-02].iso / earcd / devel / libx11 / include / x11 / extensions / pexproto.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  46KB  |  1,832 lines

  1. /* $XConsortium: PEXproto.h,v 5.3 91/07/01 16:19:18 hersh Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1989, 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Sun Microsystems,
  13. the X Consortium, and MIT not be used in advertising or publicity 
  14. pertaining to distribution of the software without specific, written 
  15. prior permission.  
  16.  
  17. SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  18. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 
  19. SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  20. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. /* Definitions for the PEX used by server and c bindings */
  28.  
  29. /*
  30.  * This packet-construction scheme makes the following assumptions:
  31.  *
  32.  * 1. The compiler is able to generate code which addresses one- and two-byte
  33.  * quantities.  In the worst case, this would be done with bit-fields.  If 
  34.  * bit-fields are used it may be necessary to reorder the request fields in
  35.  * this file, depending on the order in which the machine assigns bit fields
  36.  * to machine words.  There may also be a problem with sign extension, as K+R 
  37.  * specify that bitfields are always unsigned.
  38.  *
  39.  * 2. 2- and 4-byte fields in packet structures must be ordered by hand such 
  40.  * that they are naturally-aligned, so that no compiler will ever insert 
  41.  * padding bytes.
  42.  *
  43.  * 3. All packets are hand-padded to a multiple of 4 bytes, for the same reason.
  44.  */
  45.  
  46. #ifndef PEXPROTO_H
  47. #define PEXPROTO_H
  48.  
  49. /* In the following typedefs, comments appear that say "LISTof Foo( numItems )",
  50.  * "CLIST of Foo()", and "SINGLE Foo()".   These are used when the protocol 
  51.  * specifies that a request or reply contains a variable length list of 
  52.  * (possibly variable types of) objects.
  53.  *
  54.  * A LISTof list is one for which we have already been given the length.
  55.  * The items in the list are of type "Foo". The number of items in the list
  56.  * appears parenthetically after the type.  ("numItems" in our example.)
  57.  * Any other information needed to parse the list is also passed in the
  58.  * parentheses. (E.g., "tableType" in a list of table entries.)
  59.  *
  60.  * A CLISTof list is the same, except that the first 4 bytes of the list
  61.  * indicate the number of items in the list.  The length may need to be
  62.  * byte-swapped.
  63.  *
  64.  * A SINGLE item of an indeterminate length is indicated in the same
  65.  * manner.  (E.g., a "SINGLE TableEntry()".) Any other information
  66.  * needed to parse the item is also passed in the parentheses.
  67.  * (E.g., "itemMask" in a set of pipeline context attributes.)
  68.  *
  69.  * If no information is given in the parentheses, then the size is
  70.  * implicit.
  71.  *
  72.  * Variable length padding is noted with a comment, with the number
  73.  * of bytes of padding required as calculated from the value in
  74.  * the parentheses.  (number of bytes of padding = n?(3-((n-1)%4):0 , where
  75.  * n is the parenthetical value.)
  76.  */
  77. #include <X11/extensions/PEXprotost.h>
  78.  
  79. /* Matches revision 5.0P */
  80.  
  81. /****************************************************************
  82.  *          REPLIES                     *
  83.  ****************************************************************/
  84. typedef struct {
  85.     BYTE    type;            /* X_Reply */
  86.     CARD8    what;            /* unused */
  87.     CARD16    sequenceNumber    B16;
  88.     CARD32    length B32;        /* not 0 */
  89.     CARD16    majorVersion B16;
  90.     CARD16    minorVersion B16;
  91.     CARD32    release B32;
  92.     CARD32    lengthName B32;
  93.     CARD32    subsetInfo B32;
  94.     BYTE    pad[8];
  95.     /* LISTof CARD8 follows -- Don't swap */
  96.     /* pad */
  97.     } pexGetExtensionInfoReply;
  98.  
  99.  
  100. typedef struct {
  101.     BYTE    type;            /* X_Reply */
  102.     CARD8    what;            /* unused */
  103.     CARD16    sequenceNumber    B16;
  104.     CARD32    length B32;        /* NOT 0; this is an extra-large reply*/
  105.     CARD32    numLists B32;
  106.     BYTE    pad[20];        /* lists of lists begin afterwards */
  107.     /* LISTof CLISTof pexEnumTypeDesc( numLists ) */
  108.     /* pad */
  109.     } pexGetEnumeratedTypeInfoReply;
  110.  
  111. typedef struct {
  112.     BYTE    type;            /* X_Reply */
  113.     CARD8    what;            /* unused */
  114.     CARD16    sequenceNumber    B16;
  115.     CARD32    length B32;        /* not 0 */
  116.     BYTE    pad[24];
  117.     /* LISTof VALUE() */
  118.     } pexGetImpDepConstantsReply;
  119.  
  120. typedef struct {
  121.     BYTE    type;            /* X_Reply */
  122.     CARD8    what;            /* unused */
  123.     CARD16    sequenceNumber    B16;
  124.     CARD32    length B32;        /* 0 */
  125.     CARD16    unused B16;
  126.     CARD16    definableEntries B16;
  127.     CARD16    numPredefined B16;
  128.     CARD16    predefinedMin B16;
  129.     CARD16    predefinedMax B16;
  130.     BYTE    pad[14];
  131.     } pexGetTableInfoReply;
  132.  
  133. typedef struct {
  134.     BYTE    type;            /* X_Reply */
  135.     CARD8    what;            /* unused */
  136.     CARD16    sequenceNumber    B16;
  137.     CARD32    length B32;        /* not 0 */
  138.     CARD32    unused B32;
  139.     CARD32    numEntries B32;
  140.     BYTE    pad[16];
  141.     /* LISTof TableEntry( numEntries, tableType ) */
  142.     } pexGetPredefinedEntriesReply;
  143.  
  144. typedef struct {
  145.     BYTE    type;            /* X_Reply */
  146.     CARD8    what;            /* unused */
  147.     CARD16    sequenceNumber    B16;
  148.     CARD32    length B32;        /* not 0 */
  149.     CARD32    numIndices B32;
  150.     BYTE    pad[20];
  151.     /* LISTof pexTableIndex( numIndices ) */
  152.     /* pad( numIndices ) */
  153.     } pexGetDefinedIndicesReply;
  154.  
  155. typedef struct {
  156.     BYTE    type;            /* X_Reply */
  157.     CARD8    what;            /* unused */
  158.     CARD16    sequenceNumber    B16;
  159.     CARD32    length B32;        /* not 0 */
  160.     CARD16    status B16;
  161.     CARD16    tableType B16;
  162.     BYTE    pad[20];
  163.     /* SINGLE TableEntry( tableType )  */
  164.     } pexGetTableEntryReply;
  165.  
  166. typedef struct {
  167.     BYTE    type;            /* X_Reply */
  168.     CARD8    what;            /* unused */
  169.     CARD16    sequenceNumber    B16;
  170.     CARD32    length B32;        /* not 0 */
  171.     CARD16    tableType B16;
  172.     CARD16    unused B16;
  173.     CARD32    numEntries B32;
  174.     BYTE    pad[16];
  175.     /* LISTof TableEntry( numEntries, tableType ) */
  176.     } pexGetTableEntriesReply;
  177.  
  178. typedef struct {
  179.     BYTE    type;            /* X_Reply */
  180.     CARD8    what;            /* unused */
  181.     CARD16    sequenceNumber    B16;
  182.     CARD32    length B32;        /* not 0 */
  183.     BYTE    pad[24];
  184.     /* SINGLE PipelineContextAttributes( itemMask )  */
  185.     } pexGetPipelineContextReply;
  186.  
  187.  
  188. typedef struct {
  189.     BYTE    type;            /* X_Reply */
  190.     CARD8    what;            /* unused */
  191.     CARD16    sequenceNumber    B16;
  192.     CARD32    length B32;        /* not 0 */
  193.     BYTE    pad[24];
  194.     /* SINGLE RendererAttributes( itemMask ) */
  195.     } pexGetRendererAttributesReply;
  196.  
  197. typedef struct {
  198.     BYTE    type;            /* X_Reply */
  199.     CARD8    what;            /* unused */
  200.     CARD16    sequenceNumber    B16;
  201.     CARD32    length B32;        /* 0 */
  202.     pexBitmask    tables B32;
  203.     pexBitmask    namesets B32;
  204.     pexBitmask    attributes B32;
  205.     BYTE    pad[12];
  206. } pexGetRendererDynamicsReply;
  207.  
  208. typedef struct {
  209.     BYTE    type;            /* X_Reply */
  210.     CARD8    what;            /* unused */
  211.     CARD16    sequenceNumber    B16;
  212.     CARD32    length B32;        /* 0 */
  213.     CARD16    editMode B16;
  214.     CARD16    unused    B16;
  215.     CARD32    elementPtr B32;
  216.     CARD32    numElements B32;
  217.     CARD32    lengthStructure B32;
  218.     CARD16    hasRefs B16;
  219.     BYTE    pad[6];
  220.     } pexGetStructureInfoReply;
  221.  
  222. typedef struct {
  223.     BYTE    type;            /* X_Reply */
  224.     CARD8    what;            /* unused */
  225.     CARD16    sequenceNumber    B16;
  226.     CARD32    length B32;        /* not 0 */
  227.     CARD32    numInfo B32;
  228.     BYTE    pad[20];
  229.     /* LISTof pexElementInfo( numInfo ) */
  230.     } pexGetElementInfoReply;
  231.  
  232. typedef struct {
  233.     BYTE        type;            /* X_Reply */
  234.     CARD8        what;            /* unused */
  235.     CARD16        sequenceNumber    B16;
  236.     CARD32        length B32;        /* not 0 */
  237.     CARD8        unused[8];
  238.     CARD32        numStructures B32;
  239.     BYTE        pad[12];
  240.     /* LISTof pexStructure( numStructures )  */
  241.     } pexGetStructuresInNetworkReply;
  242.  
  243. typedef struct {
  244.     BYTE        type;            /* X_Reply */
  245.     CARD8        what;            /* unused */
  246.     CARD16        sequenceNumber    B16;
  247.     CARD32        length B32;        /* not 0 */
  248.     CARD8        unused[12];
  249.     CARD32        numPaths B32;
  250.     BYTE        pad[8];
  251.     /* LISTof CLISTof pexElementRef( numPaths ) */
  252.     } pexGetAncestorsReply;
  253.  
  254. typedef pexGetAncestorsReply pexGetDescendantsReply;
  255.  
  256. typedef struct {
  257.     BYTE    type;            /* X_Reply */
  258.     CARD8    what;            /* unused */
  259.     CARD16    sequenceNumber    B16;
  260.     CARD32    length B32;        /* not 0 */
  261.     CARD32    numElements B32;
  262.     BYTE    pad[20];
  263.     /* LISTof OutputCommand( numElements ) */
  264.     } pexFetchElementsReply;
  265.  
  266. typedef struct {
  267.     BYTE    type;            /* X_Reply */
  268.     CARD8    what;            /* unused */
  269.     CARD16    sequenceNumber    B16;
  270.     CARD32    length B32;        /* 0 */
  271.     CARD16    status B16;
  272.     CARD16    unused B16;
  273.     CARD32    foundOffset B32;
  274.     BYTE    pad[16];
  275.     } pexElementSearchReply;
  276.  
  277. typedef struct {
  278.     BYTE    type;            /* X_Reply */
  279.     CARD8    what;            /* unused */
  280.     CARD16    sequenceNumber    B16;
  281.     CARD32    length B32;        /* not 0 */
  282.     CARD32    numNames B32;
  283.     BYTE    pad[20];
  284.     /* LISTof pexName( numNames ) */
  285.     } pexGetNameSetReply;
  286.  
  287.  
  288. typedef struct {
  289.     BYTE    type;            /* X_Reply */
  290.     CARD8    what;            /* unused */
  291.     CARD16    sequenceNumber    B16;
  292.     CARD32    length B32;        /* not 0 */
  293.     BYTE    pad[24];
  294.     /* SINGLE SearchContextAttributes( itemMask ) */
  295.     } pexGetSearchContextReply;
  296.  
  297. typedef struct {
  298.     BYTE    type;            /* X_Reply */
  299.     CARD8    what;            /* unused */
  300.     CARD16    sequenceNumber    B16;
  301.     CARD32    length B32;        /* not 0 */
  302.     CARD32    unused B32;
  303.     CARD32    numItems B32;
  304.     BYTE    pad[16];
  305.     /* LISTof pexElementRef( numItems ) */
  306.     } pexSearchNetworkReply;
  307.  
  308.  
  309. typedef struct {
  310.     BYTE    type;            /* X_Reply */
  311.     CARD8    what;            /* unused */
  312.     CARD16    sequenceNumber    B16;
  313.     CARD32    length B32;        /* not 0 */
  314.     BYTE    pad[24];
  315.     /* SINGLE WksInfo( itemMask ) */
  316.     } pexGetWksInfoReply;
  317.  
  318.  
  319. typedef struct {
  320.     BYTE        type;            /* X_Reply */
  321.     CARD8        what;            /* unused */
  322.     CARD16        sequenceNumber    B16;
  323.     CARD32        length B32;        /* 0 */
  324.     pexDynamicType    viewRep;
  325.     pexDynamicType    markerBundle;
  326.     pexDynamicType    textBundle;
  327.     pexDynamicType    lineBundle;
  328.     pexDynamicType    interiorBundle;
  329.     pexDynamicType    edgeBundle;
  330.     pexDynamicType    colourTable;
  331.     pexDynamicType    patternTable;
  332.     pexDynamicType    wksTransform;
  333.     pexDynamicType    highlightFilter;
  334.     pexDynamicType    invisibilityFilter;
  335.     pexDynamicType    HlhsrMode;
  336.     pexDynamicType    structureModify;
  337.     pexDynamicType    postStructure;
  338.     pexDynamicType    unpostStructure;
  339.     pexDynamicType    deleteStructure;
  340.     pexDynamicType    referenceModify;
  341.     pexDynamicType    bufferModify;
  342.     pexDynamicType    lightTable;
  343.     pexDynamicType    depthCueTable;
  344.     pexDynamicType    colourApproxTable;
  345.     CARD8        pad[3];
  346.     } pexGetDynamicsReply;
  347.  
  348. typedef struct {
  349.     BYTE    type;            /* X_Reply */
  350.     CARD8    what;            /* unused */
  351.     CARD16    sequenceNumber    B16;
  352.     CARD32    length B32;        /* 4 + 76*fp/4 */
  353.     CARD16    viewUpdate B16;        /* Pending, NotPending */ 
  354.     BYTE    pad[22];
  355.     /* SINGLE pexViewRep()     requested */
  356.     /* SINGLE pexViewRep()     current */
  357.     } pexGetViewRepReply;
  358.  
  359. typedef struct {
  360.     BYTE    type;            /* X_Reply */
  361.     CARD8    what;            /* unused */
  362.     CARD16    sequenceNumber    B16;
  363.     CARD32    length B32;        /* not 0 */
  364.     CARD16    viewIndex B16;
  365.     CARD16    unused B16;
  366.     CARD32    numCoords B32;
  367.     BYTE    pad[16];
  368.     /* LISTof pexCoord3D( numCoords ) */
  369.     } pexMapDCtoWCReply;
  370.  
  371. typedef struct {
  372.     BYTE    type;            /* X_Reply */
  373.     CARD8    what;            /* unused */
  374.     CARD16    sequenceNumber    B16;
  375.     CARD32    length B32;        /* not 0 */
  376.     CARD32    unused B32;
  377.     CARD32    numCoords B32;
  378.     BYTE    pad[16];
  379.     /* LISTof pexDeviceCoord( numCoords ) */
  380.     } pexMapWCtoDCReply;
  381.  
  382. typedef struct {
  383.     BYTE    type;            /* X_Reply */
  384.     CARD8    what;            /* unused */
  385.     CARD16    sequenceNumber    B16;
  386.     CARD32    length B32;        /* not 0 */
  387.     BYTE    pad[24];
  388.     /* LISTof pexPhigsWksID() */
  389.     } pexGetWksPostingsReply;
  390.  
  391. typedef struct {
  392.     BYTE    type;            /* X_Reply */
  393.     CARD8    what;            /* unused */
  394.     CARD16    sequenceNumber    B16;
  395.     CARD32    length B32;        /* not 0 */
  396.     BYTE    pad[24];
  397.     /* SINGLE PickDeviceAttributes( itemMask ) */
  398.     } pexGetPickDeviceReply;
  399.  
  400. typedef struct {
  401.     BYTE    type;            /* X_Reply */
  402.     CARD8    what;            /* unused */
  403.     CARD16    sequenceNumber    B16;
  404.     CARD32    length B32;        /* not 0 */
  405.     BYTE    pad[24];
  406.     /* SINGLE pexPickMeasureAttributes( itemMask ) */
  407.     } pexGetPickMeasureReply;
  408.  
  409. typedef struct {
  410.     BYTE    type;            /* X_Reply */
  411.     CARD8    what;            /* unused */
  412.     CARD16    sequenceNumber    B16;
  413.     CARD32    length B32;        /* not 0 */
  414.     CARD32    lengthFontInfo B32;
  415.     CARD8    pad[20];
  416.     /* SINGLE pexFontInfo() */
  417.     } pexQueryFontReply;
  418.  
  419. typedef struct {
  420.     BYTE    type;            /* X_Reply */
  421.     CARD8    what;            /* unused */
  422.     CARD16    sequenceNumber    B16;
  423.     CARD32    length B32;        /* not 0 */
  424.     CARD32    numStrings B32;
  425.     BYTE    pad[20];
  426.     /* LISTof pexString( numStrings ) */
  427.     } pexListFontsReply;
  428.  
  429. typedef struct {
  430.     BYTE    type;            /* X_Reply */
  431.     CARD8    what;            /* unused */
  432.     CARD16    sequenceNumber    B16;
  433.     CARD32    length B32;        /* not 0 */
  434.     CARD32    numStrings B32;
  435.     BYTE    pad[20];
  436.     /* LISTof pexString( numStrings ) */
  437.     /* CLISTof pexFontInfo() */
  438.     } pexListFontsWithInfoReply;
  439.  
  440. typedef struct {
  441.     BYTE    type;            /* X_Reply */
  442.     CARD8    what;            /* unused */
  443.     CARD16    sequenceNumber    B16;
  444.     CARD32    length B32;        /* not 0 */
  445.     BYTE    pad[24];
  446.     /* LISTof ExtentInfo() */
  447.     } pexQueryTextExtentsReply;
  448.  
  449. /****************************************************************
  450.  *          REQUESTS                     *
  451.  ****************************************************************/
  452. /* Request structure */
  453.  
  454. typedef struct {
  455.     CARD8    reqType;
  456.     CARD8    opcode;        /* meaning depends on request type */
  457.     CARD16    length B16;        
  458.                 /* length in 4 bytes quantities */
  459.                                 /* of whole request, including this header */
  460. } pexReq;
  461.  
  462. /*****************************************************************
  463.  *  structures that follow request.
  464.  *****************************************************************/
  465.  
  466. /* ResourceReq is used for any request which has a resource ID
  467.    ( or Atom or Time ) as its one and only argument.  */
  468.  
  469. typedef struct {
  470.     CARD8    reqType;
  471.     CARD8    opcode;
  472.     CARD16    length B16;    /* 2 */
  473.     CARD32    id B32;        /* a Structure, Renderer, Font, LUT, etc. */
  474.     } pexResourceReq;
  475.  
  476.  
  477. /*****************************************************************
  478.  *  Specific Requests 
  479.  *****************************************************************/
  480.  
  481.  
  482. typedef struct {
  483.     CARD8    reqType;
  484.     CARD8    opcode;
  485.     CARD16    length B16;    /* 2 */
  486.     CARD16    clientProtocolMajor B16;
  487.     CARD16    clientProtocolMinor B16;
  488. } pexGetExtensionInfoReq;
  489.  
  490. typedef struct {
  491.     CARD8    reqType;
  492.     CARD8     opcode;
  493.     CARD16     length B16;
  494.     Drawable     drawable B32;
  495.     pexBitmask    itemMask B32;
  496.     CARD32    numEnums B32;
  497.     /* LISTof CARD16( numEnums ) */
  498.     /* pad( numEnums*2 ) */
  499. } pexGetEnumeratedTypeInfoReq;
  500.  
  501. typedef struct {
  502.     CARD8        reqType;
  503.     CARD8        opcode;
  504.     CARD16        length B16;
  505.     pexEnumTypeIndex    fpFormat B16;
  506.     CARD16        unused B16;
  507.     Drawable        drawable B32;
  508.     CARD32        numNames B32;
  509.     /* LISTof pexImpDepConstantNames ( numNames )  */
  510.     /* pad */
  511. } pexGetImpDepConstantsReq;
  512.  
  513. typedef struct {
  514.     CARD8        reqType;
  515.     CARD8         opcode;
  516.     CARD16         length B16;    /* 4 */
  517.     Drawable        drawableExample B32;
  518.     pexLookupTable    lut B32;
  519.     pexTableType    tableType B16;
  520.     CARD16        unused B16;
  521. } pexCreateLookupTableReq;
  522.  
  523.  
  524. typedef struct {
  525.     CARD8        reqType;
  526.     CARD8        opcode;
  527.     CARD16        length B16;    /* 3 */
  528.     pexLookupTable    src B32;
  529.     pexLookupTable    dst B32;
  530. } pexCopyLookupTableReq;
  531.  
  532. typedef pexResourceReq pexFreeLookupTableReq;
  533.  
  534. typedef struct {
  535.     CARD8         reqType;
  536.     CARD8         opcode;
  537.     CARD16         length B16;    /* 3 */
  538.     Drawable        drawableExample B32;
  539.     pexTableType    tableType B16;
  540.     CARD16        unused B16;
  541. } pexGetTableInfoReq;
  542.  
  543.  
  544. typedef struct {
  545.     CARD8         reqType;
  546.     CARD8         opcode;
  547.     CARD16         length B16;    /* 5 */
  548.     pexEnumTypeIndex    fpFormat B16;
  549.     CARD16        unused B16;
  550.     Drawable        drawableExample B32;
  551.     pexTableType    tableType B16;
  552.     pexTableIndex    start B16;
  553.     CARD16        count B16;
  554.     CARD16        pad B16;
  555. } pexGetPredefinedEntriesReq;
  556.  
  557. typedef pexResourceReq pexGetDefinedIndicesReq;
  558.  
  559. typedef struct {
  560.     CARD8         reqType;
  561.     CARD8         opcode;
  562.     CARD16         length B16;    /* 4 */
  563.     pexEnumTypeIndex    fpFormat B16;
  564.     CARD16        valueType B16;
  565.     pexLookupTable    lut B32;
  566.     pexTableIndex    index B16;
  567.     CARD16        pad B16;
  568. } pexGetTableEntryReq;
  569.  
  570. typedef struct {
  571.     CARD8         reqType;
  572.     CARD8         opcode;
  573.     CARD16         length B16;    /* 4 */
  574.     pexEnumTypeIndex    fpFormat B16;
  575.     CARD16        valueType B16;
  576.     pexLookupTable    lut B32;
  577.     pexTableIndex    start B16;
  578.     CARD16        count B16;
  579. } pexGetTableEntriesReq;
  580.  
  581.  
  582. typedef struct {
  583.     CARD8         reqType;
  584.     CARD8         opcode;
  585.     CARD16         length B16;
  586.     pexEnumTypeIndex    fpFormat B16;
  587.     CARD16        unused B16;
  588.     pexLookupTable    lut B32;
  589.     pexTableIndex    start B16;
  590.     CARD16        count B16;
  591. /*    LISTof TableEntry( count ) */
  592. } pexSetTableEntriesReq;
  593.  
  594.  
  595. typedef struct {
  596.     CARD8         reqType;
  597.     CARD8         opcode;
  598.     CARD16         length B16;    /* 3 */
  599.     pexLookupTable    lut B32;
  600.     pexTableIndex    start B16;
  601.     CARD16        count B16;
  602. } pexDeleteTableEntriesReq;
  603.  
  604.  
  605. typedef struct {
  606.     CARD8        reqType;
  607.     CARD8        opcode;
  608.     CARD16        length B16;    /* 6 */
  609.     pexEnumTypeIndex    fpFormat B16;
  610.     CARD16        unused B16;
  611.     pexPC        pc B32;
  612.     pexBitmask        itemMask[3];    /* pexBitmask Array */
  613.     /* SINGLE PipelineContextAttributes( itemMask ) */
  614. } pexCreatePipelineContextReq;
  615.  
  616.  
  617. typedef struct {
  618.     CARD8     reqType;
  619.     CARD8     opcode;
  620.     CARD16     length B16;    /* 6 */
  621.     pexPC    src B32;
  622.     pexPC    dst B32;
  623.     pexBitmask    itemMask[3];        /* pexBitmask Array */
  624. } pexCopyPipelineContextReq;
  625.  
  626. typedef pexResourceReq  pexFreePipelineContextReq;
  627.  
  628. typedef struct {
  629.     CARD8        reqType;
  630.     CARD8        opcode;
  631.     CARD16        length B16;    /* 6 */
  632.     pexEnumTypeIndex    fpFormat B16;
  633.     CARD16        unused B16;
  634.     pexPC        pc B32;
  635.     pexBitmask        itemMask[3];    /* pexBitmask Array */
  636. } pexGetPipelineContextReq;
  637.  
  638. typedef struct {
  639.     CARD8        reqType;
  640.     CARD8        opcode;
  641.     CARD16        length B16;
  642.     pexEnumTypeIndex    fpFormat B16;
  643.     CARD16        unused B16;
  644.     pexPC        pc B32;
  645.     pexBitmask        itemMask[3];    /* pexBitmask Array */
  646.     /* SINGLE PipelineContextAttributes( itemMask ) */
  647. } pexChangePipelineContextReq;
  648.  
  649. typedef struct {
  650.     CARD8        reqType;
  651.     CARD8        opcode;
  652.     CARD16        length B16;
  653.     pexEnumTypeIndex    fpFormat B16;
  654.     CARD16        unused B16;
  655.     pexRenderer        rdr B32;
  656.     Drawable        drawable B32;
  657.     pexBitmask        itemMask B32;
  658.     /* SINGLE RendererAttributes( itemMask ) */
  659. } pexCreateRendererReq;
  660.  
  661. typedef pexResourceReq pexFreeRendererReq;
  662.  
  663. typedef struct {
  664.     CARD8        reqType;
  665.     CARD8        opcode;
  666.     CARD16        length B16;
  667.     pexEnumTypeIndex    fpFormat B16;
  668.     CARD16        unused B16;
  669.     pexRenderer        rdr B32;
  670.     pexBitmask        itemMask B32;
  671.     /* SINGLE RendererAttributes( itemMask ) */
  672. } pexChangeRendererReq;
  673.  
  674. typedef struct {
  675.     CARD8        reqType;
  676.     CARD8        opcode;
  677.     CARD16        length B16;    /* 4 */
  678.     pexEnumTypeIndex    fpFormat B16;
  679.     CARD16        unused B16;
  680.     pexRenderer        rdr B32;
  681.     pexBitmask        itemMask B32;
  682. } pexGetRendererAttributesReq;
  683.  
  684. typedef pexResourceReq pexGetRendererDynamicsReq;
  685.  
  686. typedef struct {
  687.     CARD8     reqType;
  688.     CARD8     opcode;
  689.     CARD16     length B16;    /* 3 */
  690.     pexRenderer    rdr B32;
  691.     Drawable    drawable B32;
  692. } pexBeginRenderingReq;
  693.  
  694. typedef struct {
  695.     CARD8     reqType;
  696.     CARD8     opcode;
  697.     CARD16     length B16;    /* 3 */
  698.     pexRenderer    rdr B32;
  699.     pexSwitch    flushFlag;
  700.     BYTE    pad[3];
  701. } pexEndRenderingReq;
  702.  
  703. typedef struct {
  704.     CARD8         reqType;
  705.     CARD8         opcode;
  706.     CARD16         length B16;    /* 3 */
  707.     pexRenderer        rdr B32;
  708.     pexStructure    sid B32;
  709. } pexBeginStructureReq;
  710.  
  711. typedef pexResourceReq pexEndStructureReq;
  712.  
  713. typedef struct {
  714.     CARD8        reqType;
  715.     CARD8        opcode;
  716.     CARD16        length B16;
  717.     pexEnumTypeIndex    fpFormat B16;
  718.     CARD16        unused B16;
  719.     pexRenderer        rdr B32;
  720.     CARD32        numCommands B32;
  721.     /* LISTof OutputCommand( numCommands ) */
  722. } pexRenderOutputCommandsReq;
  723. /* individual output commands may be found in the section "Output Commands" */
  724.  
  725.  
  726. typedef struct {
  727.     CARD8         reqType;
  728.     CARD8         opcode;
  729.     CARD16         length B16;    /* 4 */
  730.     pexRenderer        rdr B32;
  731.     Drawable        drawable B32;
  732.     pexStructure    sid B32;
  733. } pexRenderNetworkReq;
  734.  
  735. typedef pexResourceReq pexCreateStructureReq;
  736.  
  737. typedef struct {
  738.     CARD8         reqType;
  739.     CARD8         opcode;
  740.     CARD16         length B16;    /* 3 */
  741.     pexStructure    src B32;
  742.     pexStructure    dst B32;
  743. } pexCopyStructureReq;
  744.  
  745. typedef struct {
  746.     CARD8     reqType;
  747.     CARD8     opcode;
  748.     CARD16     length B16;
  749.     CARD32    numStructures B32;
  750.     /* LISTof pexStructure( numStructures ) */
  751. } pexDestroyStructuresReq;
  752.  
  753. typedef struct {
  754.     CARD8         reqType;
  755.     CARD8         opcode;
  756.     CARD16         length B16;    /* 3 */
  757.     pexEnumTypeIndex    fpFormat B16;
  758.     CARD16        itemMask B16;
  759.     pexStructure    sid B32;
  760. } pexGetStructureInfoReq;
  761.  
  762. typedef struct {
  763.     CARD8         reqType;
  764.     CARD8         opcode;
  765.     CARD16         length B16;    /* 7 */
  766.     pexEnumTypeIndex    fpFormat B16;
  767.     CARD16        unused B16;
  768.     pexStructure    sid B32;
  769.     pexElementRange    range;
  770. } pexGetElementInfoReq;
  771.  
  772. typedef struct {
  773.     CARD8         reqType;
  774.     CARD8         opcode;
  775.     CARD16         length B16;    /* 3 */
  776.     pexStructure    sid B32;
  777.     CARD16        which B16;
  778.     CARD16        pad B16;
  779. } pexGetStructuresInNetworkReq;
  780.  
  781. typedef struct {
  782.     CARD8         reqType;
  783.     CARD8         opcode;
  784.     CARD16         length B16;    /* 4 */
  785.     pexStructure    sid B32;
  786.     CARD16        pathOrder B16;
  787.     CARD16        unused B16;
  788.     CARD32        pathDepth B32;
  789. } pexGetAncestorsReq;
  790.  
  791. typedef pexGetAncestorsReq pexGetDescendantsReq;
  792.  
  793. typedef struct {
  794.     CARD8         reqType;
  795.     CARD8         opcode;
  796.     CARD16         length B16;    /* 7 */
  797.     pexEnumTypeIndex    fpFormat B16;
  798.     CARD16        unused B16;
  799.     pexStructure    sid B32;
  800.     pexElementRange    range;
  801. } pexFetchElementsReq;
  802.  
  803. typedef struct {
  804.     CARD8         reqType;
  805.     CARD8         opcode;
  806.     CARD16         length B16;    /* 3 */
  807.     pexStructure    sid B32;
  808.     CARD16        mode B16;
  809.     CARD16        pad B16;
  810. } pexSetEditingModeReq;
  811.  
  812. typedef struct {
  813.     CARD8         reqType;
  814.     CARD8         opcode;
  815.     CARD16         length B16;    /* 4 */
  816.     pexStructure    sid B32;
  817.     pexElementPos    position;
  818. } pexSetElementPointerReq;
  819.  
  820. typedef struct {
  821.     CARD8         reqType;
  822.     CARD8         opcode;
  823.     CARD16         length B16;    /* 4 */
  824.     pexStructure    sid B32;
  825.     INT32        label B32;
  826.     INT32        offset B32;
  827. } pexSetElementPointerAtLabelReq;
  828.  
  829. typedef struct {
  830.     CARD8         reqType;
  831.     CARD8         opcode;
  832.     CARD16         length B16;
  833.     pexStructure    sid B32;
  834.     pexElementPos    position;
  835.     CARD32        direction B32;
  836.     CARD32        numIncls B32;
  837.     CARD32        numExcls B32;
  838.     /* LISTof CARD16( numIncls ) */
  839.     /* pad( numIncls*2 ) */
  840.     /* LISTof CARD16( numExcls ) */
  841.     /* pad( numExcls*2 ) */
  842. } pexElementSearchReq;
  843.  
  844. typedef struct {
  845.     CARD8         reqType;
  846.     CARD8         opcode;
  847.     CARD16         length B16;
  848.     pexEnumTypeIndex    fpFormat B16;
  849.     CARD16        unused B16;
  850.     pexStructure    sid B32;
  851.     CARD32        numCommands B32;
  852.     /* LISTof OutputCommand( numCommands ) */
  853. } pexStoreElementsReq;
  854.  
  855. typedef struct {
  856.     CARD8         reqType;
  857.     CARD8         opcode;
  858.     CARD16         length B16;    /* 6 */
  859.     pexStructure    sid B32;
  860.     pexElementRange    range;
  861. } pexDeleteElementsReq;
  862.  
  863. typedef struct {
  864.     CARD8         reqType;
  865.     CARD8         opcode;
  866.     CARD16         length B16;    /* 5 */
  867.     pexStructure    sid B32;
  868.     pexElementPos    position;
  869.     INT32        label B32;
  870. } pexDeleteElementsToLabelReq;
  871.  
  872. typedef struct {
  873.     CARD8         reqType;
  874.     CARD8         opcode;
  875.     CARD16         length B16;    /* 4 */
  876.     pexStructure    sid B32;
  877.     INT32        label1 B32;
  878.     INT32        label2 B32;
  879. } pexDeleteBetweenLabelsReq;
  880.  
  881. typedef struct {
  882.     CARD8         reqType;
  883.     CARD8         opcode;
  884.     CARD16         length B16;    /* 9 */
  885.     pexStructure    src B32;
  886.     pexElementRange    srcRange;
  887.     pexStructure    dst B32;
  888.     pexElementPos    dstPosition;
  889. } pexCopyElementsReq;
  890.  
  891. typedef struct {
  892.     CARD8         reqType;
  893.     CARD8         opcode;
  894.     CARD16         length B16;    /* 3 */
  895.     pexStructure    old_id B32;
  896.     pexStructure    new_id B32;
  897. } pexChangeStructureRefsReq;
  898.  
  899. typedef pexResourceReq pexCreateNameSetReq;
  900.  
  901. typedef struct {
  902.     CARD8     reqType;
  903.     CARD8     opcode;
  904.     CARD16     length B16;        /* 3 */
  905.     pexNameSet    src B32;
  906.     pexNameSet    dst B32;
  907. } pexCopyNameSetReq;
  908.  
  909. typedef pexResourceReq pexFreeNameSetReq;
  910.  
  911. typedef pexResourceReq pexGetNameSetReq;
  912.  
  913. typedef struct {
  914.     CARD8     reqType;
  915.     CARD8     opcode;
  916.     CARD16     length B16;
  917.     pexNameSet    ns B32;
  918.     CARD16    action B16;
  919.     CARD16    unused B16;
  920.     /* LISTof pexName() */
  921. } pexChangeNameSetReq;
  922.  
  923. typedef struct {
  924.     CARD8        reqType;
  925.     CARD8        opcode;
  926.     CARD16        length B16;
  927.     pexEnumTypeIndex    fpFormat B16;
  928.     CARD16        unused B16;
  929.     pexSC        sc B32;
  930.     pexBitmask        itemMask B32;
  931.     /* SINGLE SearchContextAttributes( itemMask ) */
  932. } pexCreateSearchContextReq;
  933.  
  934. typedef struct {
  935.     CARD8     reqType;
  936.     CARD8     opcode;
  937.     CARD16     length B16;        /* 4 */
  938.     pexSC    src B32;
  939.     pexSC    dst B32;
  940.     pexBitmask    itemMask B32;
  941. } pexCopySearchContextReq;
  942.  
  943. typedef pexResourceReq pexFreeSearchContextReq;
  944.  
  945. typedef struct {
  946.     CARD8        reqType;
  947.     CARD8        opcode;
  948.     CARD16        length B16;    /* 4 */
  949.     pexEnumTypeIndex    fpFormat B16;
  950.     CARD16        unused B16;
  951.     pexSC        sc B32;
  952.     pexBitmask        itemMask B32;
  953. } pexGetSearchContextReq;
  954.  
  955. typedef struct {
  956.     CARD8        reqType;
  957.     CARD8        opcode;
  958.     CARD16        length B16;
  959.     pexEnumTypeIndex    fpFormat B16;
  960.     CARD16        unused B16;
  961.     pexSC        sc B32;
  962.     pexBitmask        itemMask B32;
  963.     /* SINGLE SearchContextAttributes( itemMask ) */
  964. } pexChangeSearchContextReq;
  965.  
  966. typedef pexResourceReq pexSearchNetworkReq;
  967.  
  968. typedef struct {
  969.     CARD8         reqType;
  970.     CARD8         opcode;
  971.     CARD16         length B16;    /* 19 */
  972.     pexPhigsWks        wks B32;
  973.     Drawable        drawable B32;
  974.     pexLookupTable    markerBundle B32;
  975.     pexLookupTable    textBundle B32;
  976.     pexLookupTable    lineBundle B32;
  977.     pexLookupTable    interiorBundle B32;
  978.     pexLookupTable    edgeBundle B32;
  979.     pexLookupTable    colourTable B32;
  980.     pexLookupTable    depthCueTable B32;
  981.     pexLookupTable    lightTable B32;
  982.     pexLookupTable    colourApproxTable B32;
  983.     pexLookupTable    patternTable B32;
  984.     pexLookupTable    textFontTable B32;
  985.     pexNameSet        highlightIncl B32;
  986.     pexNameSet        highlightExcl B32;
  987.     pexNameSet        invisIncl B32;
  988.     pexNameSet        invisExcl B32;
  989.     CARD16        bufferMode B16;
  990.     CARD16        pad B16;
  991. } pexCreatePhigsWksReq;
  992.  
  993. typedef pexResourceReq pexFreePhigsWksReq;
  994.  
  995. typedef struct {
  996.     CARD8        reqType;
  997.     CARD8        opcode;
  998.     CARD16        length B16;    /* 5 */
  999.     pexEnumTypeIndex    fpFormat B16;
  1000.     CARD16        unused B16;
  1001.     pexPhigsWks        wks B32;
  1002.     pexBitmask        itemMask[2] B32;
  1003. } pexGetWksInfoReq;
  1004.  
  1005. typedef struct {
  1006.     CARD8     reqType;
  1007.     CARD8     opcode;
  1008.     CARD16     length B16;        /* 2 */
  1009.     Drawable    drawable B32;
  1010. } pexGetDynamicsReq;
  1011.  
  1012. typedef struct {
  1013.     CARD8         reqType;
  1014.     CARD8         opcode;
  1015.     CARD16         length B16;    /* 3 */
  1016.     pexEnumTypeIndex    fpFormat B16;
  1017.     pexTableIndex    index B16;
  1018.     pexPhigsWks        wks B32;
  1019. } pexGetViewRepReq;
  1020.  
  1021. typedef pexResourceReq pexRedrawAllStructuresReq;    
  1022.  
  1023. typedef pexResourceReq pexUpdateWorkstationReq;
  1024.  
  1025. typedef struct {
  1026.     CARD8         reqType;
  1027.     CARD8         opcode;
  1028.     CARD16         length B16;
  1029.     pexPhigsWks        wks B32;
  1030.     CARD32        numRects B32;
  1031.     /* LISTof pexDeviceRect( numRects ) */
  1032. } pexRedrawClipRegionReq;
  1033.  
  1034. typedef pexResourceReq pexExecuteDeferredActionsReq;
  1035.  
  1036. typedef struct {
  1037.     CARD8         reqType;
  1038.     CARD8         opcode;
  1039.     CARD16         length B16;    /* 4 */
  1040.     pexPhigsWks        wks B32;
  1041.     pexTableIndex    index1 B16;
  1042.     pexTableIndex    index2 B16;
  1043.     CARD16        priority B16;
  1044.     CARD16        pad B16;
  1045. } pexSetViewPriorityReq;
  1046.  
  1047. typedef struct {
  1048.     CARD8         reqType;
  1049.     CARD8         opcode;
  1050.     CARD16         length B16;    /* 3 */
  1051.     pexPhigsWks        wks B32;
  1052.     pexEnumTypeIndex    displayUpdate B16;
  1053.     CARD16        pad B16;
  1054. } pexSetDisplayUpdateModeReq;
  1055.  
  1056. typedef struct {
  1057.     CARD8        reqType;
  1058.     CARD8        opcode;
  1059.     CARD16        length B16;
  1060.     pexEnumTypeIndex    fpFormat B16;
  1061.     CARD16        unused B16;
  1062.     pexPhigsWks        wks B32;
  1063.     CARD32        numCoords B32;
  1064.     /* LISTof pexDeviceCoord( numCoords ) */
  1065. } pexMapDCtoWCReq;
  1066.  
  1067. typedef struct {
  1068.     CARD8        reqType;
  1069.     CARD8        opcode;
  1070.     CARD16        length B16;
  1071.     pexEnumTypeIndex    fpFormat B16;
  1072.     CARD16        index B16;
  1073.     pexPhigsWks        wks B32;
  1074.     CARD32        numCoords B32;
  1075.     /* LISTof pexCoord3D( numCoords ) */
  1076. } pexMapWCtoDCReq;
  1077.  
  1078. typedef struct {
  1079.     CARD8        reqType;
  1080.     CARD8        opcode;
  1081.     CARD16        length B16;    /* 43 */
  1082.     pexEnumTypeIndex    fpFormat B16;
  1083.     CARD16        unused B16;
  1084.     pexPhigsWks        wks B32;
  1085.     pexViewRep        viewRep;
  1086. } pexSetViewRepReq;
  1087.  
  1088. typedef struct {
  1089.     CARD8         reqType;
  1090.     CARD8         opcode;
  1091.     CARD16         length B16;    /* 9 */
  1092.     pexEnumTypeIndex    fpFormat B16;
  1093.     CARD16        unused B16;
  1094.     pexPhigsWks        wks B32;
  1095.     pexNpcSubvolume    npcSubvolume;
  1096. } pexSetWksWindowReq;
  1097.  
  1098. typedef struct {
  1099.     CARD8        reqType;
  1100.     CARD8        opcode;
  1101.     CARD16        length B16;    /* 8 */
  1102.     pexEnumTypeIndex    fpFormat B16;
  1103.     CARD16        unused B16;
  1104.     pexPhigsWks        wks B32;
  1105.     pexViewport        viewport;
  1106. } pexSetWksViewportReq;
  1107.  
  1108. typedef struct {
  1109.     CARD8         reqType;
  1110.     CARD8         opcode;
  1111.     CARD16         length B16;    /* 3 */
  1112.     pexPhigsWks        wks B32;
  1113.     pexEnumTypeIndex    mode B16;
  1114.     CARD16        pad B16;
  1115. } pexSetHlhsrModeReq;
  1116.  
  1117. typedef struct {
  1118.     CARD8        reqType;
  1119.     CARD8        opcode;
  1120.     CARD16        length B16;    /* 3 */
  1121.     pexPhigsWks        wks B32;
  1122.     CARD16        bufferMode B16;
  1123.     CARD16        pad B16;
  1124. } pexSetWksBufferModeReq;
  1125.  
  1126. typedef struct {
  1127.     CARD8         reqType;
  1128.     CARD8         opcode;
  1129.     CARD16         length B16;    /* 5 */
  1130.     pexEnumTypeIndex    fpFormat B16;
  1131.     CARD16        unused B16;
  1132.     pexPhigsWks        wks B32;
  1133.     pexStructure    sid B32;
  1134.     PEXFLOAT        priority;
  1135. } pexPostStructureReq;
  1136.  
  1137. typedef struct {
  1138.     CARD8         reqType;
  1139.     CARD8         opcode;
  1140.     CARD16         length B16;    /* 3 */
  1141.     pexPhigsWks        wks B32;
  1142.     pexStructure    sid B32;
  1143. } pexUnpostStructureReq;
  1144.  
  1145. typedef pexResourceReq pexUnpostAllStructuresReq;
  1146.  
  1147. typedef pexResourceReq pexGetWksPostingsReq;
  1148.  
  1149. typedef struct {
  1150.     CARD8         reqType;
  1151.     CARD8         opcode;
  1152.     CARD16         length B16;    /* 4 */
  1153.     pexEnumTypeIndex    fpFormat B16;
  1154.     pexEnumTypeIndex    devType B16;
  1155.     pexPhigsWks        wks B32;
  1156.     pexBitmask        itemMask B32;
  1157. } pexGetPickDeviceReq;
  1158.  
  1159. typedef struct {
  1160.     CARD8         reqType;
  1161.     CARD8         opcode;
  1162.     CARD16         length B16;
  1163.     pexEnumTypeIndex    fpFormat B16;
  1164.     CARD16        unused B16;
  1165.     pexPhigsWks        wks B32;
  1166.     pexEnumTypeIndex    devType B16;
  1167.     CARD16        unused2 B16;
  1168.     pexBitmask        itemMask B32;
  1169.     /* SINGLE PickDeviceAttributes( itemMask ) */
  1170. } pexChangePickDeviceReq;
  1171.  
  1172. typedef struct {
  1173.     CARD8         reqType;
  1174.     CARD8         opcode;
  1175.     CARD16         length B16;    /* 4 */
  1176.     pexPhigsWks        wks B32;
  1177.     pexPickMeasure    pm;
  1178.     pexEnumTypeIndex    devType B16;
  1179.     CARD16          pad B16;
  1180. } pexCreatePickMeasureReq;
  1181.  
  1182. typedef pexResourceReq pexFreePickMeasureReq;
  1183.  
  1184. typedef struct {
  1185.     CARD8         reqType;
  1186.     CARD8         opcode;
  1187.     CARD16         length B16;    /* 3 */
  1188.     pexPickMeasure    pm B32;
  1189.     pexBitmask        itemMask B32;
  1190. } pexGetPickMeasureReq;
  1191.  
  1192. typedef struct {
  1193.     CARD8         reqType;
  1194.     CARD8         opcode;
  1195.     CARD16         length B16;
  1196.     pexPickMeasure    pm B32;
  1197.     CARD32        numBytes B32;
  1198.     /* LISTof CARD8( numBytes ) -- don't swap */
  1199.     /* pad( numBytes ) */
  1200. } pexUpdatePickMeasureReq;
  1201.  
  1202. typedef struct {
  1203.     CARD8     reqType;
  1204.     CARD8     opcode;
  1205.     CARD16     length B16;
  1206.     pexFont    font B32;
  1207.     CARD32    numBytes B32;
  1208.     /* LISTof CARD8( numBytes ) -- don't swap */
  1209.     /* pad( numBytes ) */
  1210. } pexOpenFontReq;
  1211.  
  1212. typedef pexResourceReq pexCloseFontReq;
  1213.  
  1214. typedef struct {
  1215.     CARD8        reqType;
  1216.     CARD8        opcode;
  1217.     CARD16        length B16;
  1218.     pexFont        font B32;
  1219. } pexQueryFontReq;
  1220.  
  1221. typedef struct {
  1222.     CARD8     reqType;
  1223.     CARD8     opcode;
  1224.     CARD16     length B16;
  1225.     CARD16    maxNames B16;
  1226.     CARD16    numChars B16;
  1227.     /* LISTof CARD8( numChars ) -- don't swap */
  1228.     /* pad( numBytes ) */
  1229. } pexListFontsReq;
  1230.  
  1231. typedef struct {
  1232.     CARD8        reqType;
  1233.     CARD8        opcode;
  1234.     CARD16        length B16;
  1235.     CARD16        unused B16;
  1236.     CARD16        maxNames B16;
  1237.     CARD16        numChars B16;
  1238.     CARD16        pad B16;
  1239.     /* LISTof CARD8( numChars )  */
  1240.     /* pad( numBytes ) */
  1241. } pexListFontsWithInfoReq;
  1242.  
  1243. typedef struct {
  1244.     CARD8            reqType;
  1245.     CARD8            opcode;
  1246.     CARD16            length B16;
  1247.     pexEnumTypeIndex        fpFormat B16;
  1248.     CARD16            textPath B16;
  1249.     pexTableIndex        fontGroupIndex  B16;
  1250.     CARD16            unused B16;
  1251.     XID                id B32;    /* renderer, wks, or text font lut */
  1252.     PEXFLOAT            charExpansion;
  1253.     PEXFLOAT            charSpacing;
  1254.     PEXFLOAT            charHeight;
  1255.     pexTextAlignmentData    textAlignment;
  1256.     CARD32            numStrings B32;
  1257.     /* LISTof LISTof MONO_ENCODINGS() */
  1258.     /* pad() */
  1259. }  pexQueryTextExtentsReq;
  1260.  
  1261. /*****************************************************************
  1262.  * Output Commands 
  1263.  *****************************************************************/
  1264.  
  1265. typedef struct {
  1266.     pexElementInfo    head;
  1267.     pexEnumTypeIndex    markerType B16;
  1268.     CARD16        pad B16;
  1269. } pexMarkerType;
  1270.  
  1271. typedef struct {
  1272.     pexElementInfo    head;
  1273.     PEXFLOAT        scale;
  1274. } pexMarkerScale;
  1275.  
  1276. typedef struct {
  1277.     pexElementInfo    head;
  1278.     pexTableIndex    index B16;
  1279.     CARD16        pad B16;
  1280. } pexMarkerBundleIndex;
  1281.  
  1282. typedef pexMarkerBundleIndex  pexMarkerColourIndex;
  1283. typedef pexMarkerBundleIndex  pexTextColourIndex;
  1284. typedef pexMarkerBundleIndex  pexLineColourIndex;
  1285. typedef pexMarkerBundleIndex  pexSurfaceColourIndex;
  1286. typedef pexMarkerBundleIndex  pexBfSurfaceColourIndex;
  1287. typedef pexMarkerBundleIndex  pexSurfaceEdgeColourIndex;
  1288.  
  1289. typedef pexMarkerBundleIndex pexTextFontIndex;
  1290.  
  1291. typedef struct {
  1292.     pexElementInfo    head;
  1293.     pexColourSpecifier    colourSpec;
  1294.     /* SINGLE COLOUR() */
  1295. } pexMarkerColour;
  1296.  
  1297. typedef pexMarkerColour pexTextColour;
  1298. typedef pexMarkerColour pexLineColour;
  1299. typedef pexMarkerColour pexSurfaceColour;
  1300. typedef pexMarkerColour pexBfSurfaceColour;
  1301. typedef pexMarkerColour pexSurfaceEdgeColour;
  1302.  
  1303. typedef struct {
  1304.     pexElementInfo    head;
  1305.     pexEnumTypeIndex    style B16;
  1306.     CARD16        pad B16;
  1307. } pexAtextStyle;
  1308.  
  1309. typedef pexMarkerBundleIndex pexTextBundleIndex;
  1310. typedef pexMarkerBundleIndex pexLineBundleIndex;
  1311. typedef pexMarkerBundleIndex pexInteriorBundleIndex;
  1312. typedef pexMarkerBundleIndex pexInteriorStyleIndex;
  1313. typedef pexMarkerBundleIndex pexBfInteriorStyleIndex;
  1314. typedef pexMarkerBundleIndex pexEdgeBundleIndex;
  1315. typedef pexMarkerBundleIndex pexViewIndex;
  1316. typedef pexMarkerBundleIndex pexDepthCueIndex;
  1317. typedef pexMarkerBundleIndex pexColourApproxIndex;
  1318.  
  1319. typedef struct {
  1320.     pexElementInfo    head;
  1321.     CARD16        precision B16;
  1322.     CARD16        pad B16;
  1323. } pexTextPrecision;
  1324.  
  1325. typedef struct {
  1326.     pexElementInfo    head;
  1327.     PEXFLOAT        expansion;
  1328. } pexCharExpansion;
  1329.  
  1330. typedef struct {
  1331.     pexElementInfo    head;
  1332.     PEXFLOAT        spacing;
  1333. } pexCharSpacing;
  1334.  
  1335. typedef struct {
  1336.     pexElementInfo    head;
  1337.     PEXFLOAT        height;
  1338. } pexCharHeight;
  1339. typedef pexCharHeight pexAtextHeight;
  1340.  
  1341. typedef struct {
  1342.     pexElementInfo    head;
  1343.     pexVector2D        up;
  1344. } pexCharUpVector;
  1345. typedef pexCharUpVector pexAtextUpVector;
  1346.  
  1347. typedef struct {
  1348.     pexElementInfo    head;
  1349.     CARD16        path B16;
  1350.     CARD16        pad B16;
  1351. } pexTextPath;
  1352. typedef pexTextPath pexAtextPath;
  1353.  
  1354. typedef struct {
  1355.     pexElementInfo        head;
  1356.     pexTextAlignmentData    alignment;
  1357. } pexTextAlignment;
  1358. typedef pexTextAlignment pexAtextAlignment;
  1359.  
  1360. typedef struct {
  1361.     pexElementInfo    head;
  1362.     pexEnumTypeIndex    lineType B16;
  1363.     CARD16        pad B16;
  1364. } pexLineType;
  1365.  
  1366. typedef struct {
  1367.     pexElementInfo    head;
  1368.     PEXFLOAT        width;
  1369. } pexLineWidth;
  1370. typedef pexLineWidth    pexSurfaceEdgeWidth;
  1371.  
  1372. typedef struct {
  1373.     pexElementInfo    head;
  1374.     pexCurveApprox    approx;
  1375. } pexCurveApproximation;
  1376.  
  1377. typedef struct {
  1378.     pexElementInfo    head;
  1379.     pexEnumTypeIndex    polylineInterp B16;
  1380.     CARD16        pad B16;
  1381. } pexPolylineInterp;
  1382.  
  1383. typedef struct {
  1384.     pexElementInfo    head;
  1385.     pexEnumTypeIndex    interiorStyle B16;
  1386.     CARD16        pad B16;
  1387. } pexInteriorStyle;
  1388. typedef pexInteriorStyle pexBfInteriorStyle;
  1389.  
  1390. typedef struct {
  1391.     pexElementInfo    head;
  1392.     pexReflectionAttr    reflectionAttr;
  1393. } pexSurfaceReflAttr;
  1394. typedef pexSurfaceReflAttr pexBfSurfaceReflAttr;
  1395.  
  1396. typedef struct {
  1397.     pexElementInfo    head;
  1398.     pexEnumTypeIndex    reflectionModel B16;
  1399.     CARD16        pad B16;
  1400. } pexSurfaceReflModel;
  1401. typedef pexSurfaceReflModel pexBfSurfaceReflModel;
  1402.  
  1403. typedef struct {
  1404.     pexElementInfo    head;
  1405.     pexEnumTypeIndex    surfaceInterp B16;
  1406.     CARD16        pad B16;
  1407. } pexSurfaceInterp;
  1408. typedef pexSurfaceInterp pexBfSurfaceInterp;
  1409.  
  1410. typedef struct {
  1411.     pexElementInfo    head;
  1412.     pexSurfaceApprox    approx;
  1413. } pexSurfaceApproximation;
  1414.  
  1415. typedef struct {
  1416.     pexElementInfo    head;
  1417.     pexCullMode        cullMode B16;
  1418.     CARD16        pad B16;
  1419. } pexCullingMode;
  1420.  
  1421. typedef struct {
  1422.     pexElementInfo    head;
  1423.     pexSwitch        distinguish;
  1424.     BYTE        pad[3];
  1425. } pexDistinguishFlag;
  1426.  
  1427. typedef struct {
  1428.     pexElementInfo    head;
  1429.     pexVector2D        size;
  1430. } pexPatternSize;
  1431.  
  1432. typedef struct {
  1433.     pexElementInfo    head;
  1434.     pexCoord2D        point;
  1435. } pexPatternRefPt;
  1436.  
  1437. typedef struct {
  1438.     pexElementInfo    head;
  1439.     pexCoord3D        refPt;
  1440.     pexVector3D        vector1;
  1441.     pexVector3D        vector2;
  1442. } pexPatternAttr;
  1443.  
  1444. typedef struct {
  1445.     pexElementInfo    head;
  1446.     pexSwitch        onoff;
  1447.     BYTE        pad[3];
  1448. } pexSurfaceEdgeFlag;
  1449.  
  1450. typedef struct {
  1451.     pexElementInfo    head;
  1452.     pexEnumTypeIndex    edgeType B16;
  1453.     CARD16        pad B16;
  1454. } pexSurfaceEdgeType;
  1455.  
  1456. typedef struct {
  1457.     pexElementInfo    head;
  1458.     pexAsfAttribute    attribute B32;
  1459.     pexAsfValue        source;
  1460.     BYTE        pad[3];
  1461. } pexSetAsfValues;
  1462.  
  1463. typedef struct {
  1464.     pexElementInfo    head;
  1465.     pexComposition    compType;
  1466.     CARD16        unused B16;
  1467.     pexMatrix        matrix;
  1468. } pexLocalTransform;
  1469.  
  1470. typedef struct {
  1471.     pexElementInfo    head;
  1472.     pexComposition    compType;
  1473.     CARD16        unused B16;
  1474.     pexMatrix3X3    matrix3X3;
  1475. } pexLocalTransform2D;
  1476.  
  1477. typedef struct {
  1478.     pexElementInfo    head;
  1479.     pexMatrix        matrix;
  1480. } pexGlobalTransform;
  1481.  
  1482. typedef struct {
  1483.     pexElementInfo    head;
  1484.     pexMatrix3X3    matrix3X3;
  1485. } pexGlobalTransform2D;
  1486.  
  1487. typedef struct {
  1488.     pexElementInfo    head;
  1489.     pexSwitch        onoff;
  1490.     BYTE        pad[3];
  1491. } pexModelClip;
  1492.  
  1493. typedef struct {
  1494.     pexElementInfo    head;
  1495.     pexEnumTypeIndex    modelClipOperator B16;
  1496.     CARD16        numHalfSpaces B16;
  1497.     /* LISTof pexHalfSpace( numHalfSpaces ) */
  1498. } pexModelClipVolume;
  1499.  
  1500. typedef struct {
  1501.     pexElementInfo    head;
  1502.     pexEnumTypeIndex    modelClipOperator B16;
  1503.     CARD16        numHalfSpaces B16;
  1504.     /* LISTof pexHalfSpace2D( numHalfSpaces ) */
  1505. } pexModelClipVolume2D;
  1506.  
  1507. typedef struct {
  1508.     pexElementInfo    head;
  1509. } pexRestoreModelClip;
  1510.  
  1511. typedef struct {
  1512.     pexElementInfo    head;
  1513.     CARD16        numEnable B16;
  1514.     CARD16        numDisable B16;
  1515.     /* LISTof pexTableIndex( numEnable ) */
  1516.     /* pad( ( numEnable )*2 ) */
  1517.     /* LISTof pexTableIndex( numDisable ) */
  1518.     /* pad( ( numDisable )*2 ) */
  1519. } pexLightState;
  1520.  
  1521. typedef struct {
  1522.     pexElementInfo    head;
  1523.     CARD32        pickId B32;
  1524. } pexPickId;
  1525.  
  1526. typedef struct {
  1527.     pexElementInfo    head;
  1528.     CARD32        hlhsrID B32;
  1529. } pexHlhsrIdentifier;
  1530.  
  1531. typedef struct {
  1532.     pexElementInfo    head;
  1533.     pexEnumTypeIndex    model B16;
  1534.     CARD16        pad B16;
  1535. } pexRenderingColourModel;
  1536.  
  1537. typedef struct {
  1538.     pexElementInfo    head;
  1539.     pexEnumTypeIndex    characteristics B16;
  1540.     CARD16        length B16;
  1541.     /* SINGLEof PARAMETRIC_SURFACE_CHARACTERISTICS */
  1542. } pexParaSurfCharacteristics;
  1543.  
  1544. typedef struct {
  1545.     pexElementInfo    head;
  1546.     /* LISTof pexName() */
  1547. } pexAddToNameSet;
  1548. typedef pexAddToNameSet pexRemoveFromNameSet;
  1549.  
  1550. typedef struct {
  1551.     pexElementInfo    head;
  1552.     pexStructure    id B32;
  1553. } pexExecuteStructure;
  1554.  
  1555. typedef struct {
  1556.     pexElementInfo    head;
  1557.     INT32        label B32;
  1558. } pexLabel;
  1559.  
  1560. typedef struct {
  1561.     pexElementInfo    head;
  1562.     CARD16        numElements B16;
  1563.     CARD16        unused B16;
  1564.     /* LISTof CARD8( numElements ) -- don't swap */
  1565.     /* pad( numElements ) */
  1566. } pexApplicationData;
  1567.     
  1568. typedef struct {
  1569.     pexElementInfo    head;
  1570.     CARD32        id B32;
  1571.     CARD16        numElements B16;
  1572.     CARD16        unused B16;
  1573.     /* LISTof CARD8( numElements ) -- don't swap */
  1574.     /* pad( numElements ) */
  1575. } pexGse;
  1576.  
  1577. typedef struct {
  1578.     pexElementInfo    head;
  1579.     /* LISTof pexCoord3D() */
  1580. } pexMarker;    
  1581.  
  1582. typedef struct {
  1583.     pexElementInfo    head;
  1584.     /* LISTof pexCoord2D() */
  1585. } pexMarker2D;    
  1586.  
  1587. typedef struct {
  1588.     pexElementInfo    head;
  1589.     pexCoord3D        origin;
  1590.     pexVector3D        vector1;
  1591.     pexVector3D        vector2;
  1592.     CARD16        numEncodings B16;
  1593.     CARD16        unused B16;
  1594.     /* LISTof pexMonoEncoding( numEncodings ) */
  1595. } pexText;
  1596.  
  1597. typedef struct {
  1598.     pexElementInfo    head;
  1599.     pexCoord2D        origin;
  1600.     CARD16        numEncodings B16;
  1601.     CARD16        unused B16;
  1602.     /* LISTof pexMonoEncoding( numEncodings ) */
  1603. } pexText2D;
  1604.  
  1605. typedef struct {
  1606.     pexElementInfo    head;
  1607.     pexCoord3D        origin;
  1608.     pexCoord3D        offset;
  1609.     CARD16        numEncodings B16;
  1610.     CARD16        unused B16;
  1611.     /* LISTof pexMonoEncoding( numEncodings ) */
  1612. } pexAnnotationText;
  1613.  
  1614. typedef struct {
  1615.     pexElementInfo    head;
  1616.     pexCoord2D        origin;
  1617.     pexCoord2D        offset;
  1618.     CARD16        numEncodings B16;
  1619.     CARD16        unused B16;
  1620.     /* LISTof pexMonoEncoding( numEncodings ) */
  1621. } pexAnnotationText2D;
  1622.  
  1623. typedef struct {
  1624.     pexElementInfo    head;
  1625.     /* LISTof pexCoord3D() */
  1626. } pexPolyline;
  1627.  
  1628. typedef struct {
  1629.     pexElementInfo    head;
  1630.     /* LISTof pexCoord2D() */
  1631. } pexPolyline2D;
  1632.  
  1633. typedef struct {
  1634.     pexElementInfo    head;
  1635.     pexColourType    colourType B16;
  1636.     pexBitmaskShort    vertexAttribs B16;
  1637.     CARD32        numLists B32;
  1638.     /* LISTof CLISTof pexVertex( numLists, vertexAttribs, colourType ) */
  1639. } pexPolylineSet;
  1640.  
  1641. typedef struct {
  1642.     pexElementInfo    head;
  1643.     CARD16        curveOrder B16;
  1644.     pexCoordType    coordType B16;
  1645.     PEXFLOAT        tmin;
  1646.     PEXFLOAT        tmax;
  1647.     CARD32        numKnots B32;
  1648.     CARD32        numPoints B32;
  1649.     /* LISTof FLOAT( numKnots ) */
  1650.     /* LISTof {pexCoord3D|pexCoord4D}( numPoints, coordType ) */
  1651. } pexNurbCurve;
  1652.  
  1653. typedef struct {
  1654.     pexElementInfo    head;
  1655.     CARD16        shape B16;
  1656.     pexSwitch        ignoreEdges;
  1657.     CARD8        pad;
  1658.     /* LISTof pexCoord3D() */
  1659. } pexFillArea;
  1660.  
  1661. typedef struct {
  1662.     pexElementInfo    head;
  1663.     CARD16        shape B16;
  1664.     pexSwitch        ignoreEdges;
  1665.     CARD8        unused;
  1666.     /* LISTof pexCoord2D() */
  1667. } pexFillArea2D;
  1668.  
  1669. typedef struct {
  1670.     pexElementInfo    head;
  1671.     CARD16        shape B16;
  1672.     pexSwitch        ignoreEdges;
  1673.     CARD8        unused;
  1674.     pexColourType    colourType B16;
  1675.     pexBitmaskShort    facetAttribs B16;
  1676.     pexBitmaskShort    vertexAttribs B16;
  1677.     CARD16        unused2 B16;
  1678.     /* SINGLE Facet( facetAttribs, vertexAttribs, colourType ) */
  1679. } pexExtFillArea;
  1680.  
  1681. typedef struct {
  1682.     pexElementInfo    head;
  1683.     CARD16        shape B16;
  1684.     pexSwitch        ignoreEdges;
  1685.     CARD8        contourHint;
  1686.     CARD32        numLists B32;
  1687.     /* LISTof CLISTof Coord3D( numLists ) */
  1688. } pexFillAreaSet;
  1689.  
  1690. typedef struct {
  1691.     pexElementInfo    head;
  1692.     CARD16        shape B16;
  1693.     pexSwitch        ignoreEdges;
  1694.     CARD8        contourHint;
  1695.     CARD32        numLists B32;
  1696.     /* LISTof CLISTof Coord2D( numLists ) */
  1697. } pexFillAreaSet2D;
  1698.  
  1699.  
  1700. typedef struct {
  1701.     pexElementInfo    head;
  1702.     CARD16        shape B16;
  1703.     pexSwitch        ignoreEdges;
  1704.     CARD8        contourHint;
  1705.     pexColourType    colourType B16;
  1706.     pexBitmaskShort    facetAttribs B16;
  1707.     pexBitmaskShort    vertexAttribs B16;
  1708.     CARD16        unused2 B16;
  1709.     CARD32        numLists B32;
  1710.     /* pexOptData( facetAttribs ) */
  1711.     /* LISTof CLISTof  pexVertex( numLists, vertexAttribs, colourType ) */
  1712. } pexExtFillAreaSet;
  1713.  
  1714. typedef struct {
  1715.     pexElementInfo    head;
  1716.     pexColourType    colourType B16;
  1717.     pexBitmaskShort    facetAttribs B16;
  1718.     pexBitmaskShort    vertexAttribs B16;
  1719.     CARD16        unused B16;
  1720.     CARD32        numVertices B32;
  1721.     /* number of OptData is numVert - 2 */
  1722.     /* LISTof pexOptData( facetAttribs, colourType ) */
  1723.     /* LISTof pexVertex( numVertices, vertexAttribs, colourType ) */
  1724. } pexTriangleStrip;
  1725.  
  1726. typedef struct {
  1727.     pexElementInfo    head;
  1728.     pexColourType    colourType B16;
  1729.     CARD16        mPts B16;
  1730.     CARD16        nPts B16;
  1731.     pexBitmaskShort    facetAttribs B16;
  1732.     pexBitmaskShort    vertexAttribs B16;
  1733.     CARD16        shape B16;
  1734.     /* actually, there are (mPts-1)*(nPts-1) opt data entries */
  1735.     /* LISTof pexOptData( facetAttribs, colourType ) */
  1736.     /* LISTof pexVertex( mPts, nPts, vertexAttribs, colourType ) */
  1737. } pexQuadrilateralMesh;
  1738.  
  1739. typedef struct {
  1740.     pexElementInfo    head;
  1741.     CARD16        shape B16;
  1742.     pexColourType    colourType B16;
  1743.     CARD16        FAS_Attributes B16;
  1744.     CARD16        vertexAttributes B16;
  1745.     CARD16        edgeAttributes B16;
  1746.     CARD8        contourHint;
  1747.     pexSwitch        contourCountsFlag;
  1748.     CARD16        numFAS B16;
  1749.     CARD16        numVertices B16;
  1750.     CARD16        numEdges B16;
  1751.     CARD16        numContours B16;
  1752.     /* LISTof OPT_DATA( numFAS ) */
  1753.     /* LISTof pexVertex( numVertices ) */
  1754.     /* LISTof CARD8( numEdges ) */
  1755.     /* pad( numEdges ) */
  1756.     /* LISTof CLISTof CLISTof CARD16( numFAS, numContours, numEdges ) */
  1757.     /* pad */
  1758. } pexSOFAS;
  1759.  
  1760. typedef struct {
  1761.     pexElementInfo    head;
  1762.     pexCoordType     type B16;
  1763.     CARD16        uOrder B16;
  1764.     CARD16        vOrder B16;
  1765.     CARD16        unused B16;
  1766.     CARD32        numUknots B32;
  1767.     CARD32        numVknots B32;
  1768.     CARD16        mPts B16;
  1769.     CARD16        nPts B16;
  1770.     CARD32        numLists B32;
  1771.     /* LISTof FLOAT( numUknots ) */
  1772.     /* LISTof FLOAT( numVKnots ) */
  1773.     /* LISTof {pexCoord3D|pexCoord4D}( mPts, nPts, surfaceType ) */
  1774.     /* LISTof CLISTof pexTrimCurve( numLists ) */
  1775. } pexNurbSurface;
  1776.  
  1777. typedef struct {
  1778.     pexElementInfo    head;
  1779.     pexCoord3D        point1;
  1780.     pexCoord3D        point2;
  1781.     pexCoord3D        point3;
  1782.     CARD32        dx B32;
  1783.     CARD32        dy B32;
  1784.     /* LISTof pexTableIndex( dx, dy ) */
  1785.     /* pad(  2*dx*dy ) */
  1786. } pexCellArray;
  1787.  
  1788. typedef struct {
  1789.     pexElementInfo    head;
  1790.     pexCoord2D        point1;
  1791.     pexCoord2D        point2;
  1792.     CARD32        dx B32;
  1793.     CARD32        dy B32;
  1794.     /* LISTof pexTableIndex( dx, dy ) */
  1795.     /* pad( 2*dx*dy ) */
  1796. } pexCellArray2D;
  1797.  
  1798. typedef struct {
  1799.     pexElementInfo    head;
  1800.     pexColourType    colourType B16;
  1801.     CARD16        unused B16;
  1802.     pexCoord3D        point1;
  1803.     pexCoord3D        point2;
  1804.     pexCoord3D        point3;
  1805.     CARD32        dx B32;
  1806.     CARD32        dy B32;
  1807.     /* LISTof pexColourSpecifier( dx, dy ) */
  1808. } pexExtCellArray;
  1809.  
  1810. typedef struct {
  1811.     pexElementInfo    head;
  1812.     INT32        gdpId B32;
  1813.     CARD32        numPoints B32;
  1814.     CARD32        numBytes B32;
  1815.     /* LISTof pexCoord3D( numPoints ) */
  1816.     /* LISTof CARD8( numBytes ) -- don't swap */
  1817.     /* pad( numBytes ) */
  1818. } pexGdp;
  1819.  
  1820. typedef struct {
  1821.     pexElementInfo    head;
  1822.     INT32        gdpId B32;
  1823.     CARD32        numPoints B32;
  1824.     CARD32        numBytes B32;
  1825.     /* LISTof pexCoord2D( numPoints ) */
  1826.     /* LISTof CARD8( numBytes ) -- don't swap */
  1827.     /* pad( numBytes ) */
  1828. } pexGdp2D;
  1829.  
  1830. #endif /* PEXPROTO_H */
  1831.  
  1832.